package com.yukh.test.spring.proxy.cglib.demo1;

import java.lang.reflect.Method;

import org.logicalcobwebs.cglib.proxy.MethodInterceptor;
import org.logicalcobwebs.cglib.proxy.MethodProxy;

public class CglibProxy implements MethodInterceptor {

	@Override
	public Object intercept(Object object, Method method, 
			Object[] args, MethodProxy methodProxy) throws Throwable {

		System.out.println("Before Helloworld~");

		methodProxy.invokeSuper(object, args);

		System.out.println("After Helloworld~");

		return null;
	}
}
